use dioxus::prelude::*;
use serde::Deserialize;

mod backend;
mod components;
mod guide_router;

use crate::components::*;
use crate::guide_router::Route;

#[derive(Deserialize)]
pub struct DogApi {
    message: String,
}

fn main() {
    dioxus::launch(App);
}

#[component]
fn App() -> Element {
    static CSS: Asset = asset!("assets/main.css");
    rsx! {
        document::Stylesheet { href: CSS }
        Router::<Route>{}
    }
}

#[component]
fn Title() -> Element {
    rsx! {
        div { id: "title",
            h1 { "Hotdog! " }
        }
    }
}
